<h1>Listing passes</h1>

<table>
  <tr>
    <th>Pass</th>
    <th>Nextchange</th>
    <th>Status</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @passes.each do |pass| %>
  <tr>
    <td><%= pass.pass %></td>
    <td><%= pass.nextchange %></td>
    <td><%= pass.status %></td>
    <td><%= link_to 'Show', pass %></td>
    <td><%= link_to 'Edit', edit_pass_path(pass) %></td>
    <td><%= link_to 'Destroy', pass, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Pass', new_pass_path %>
